package com.sumainfor.pc.gmio.fallback.ZfallBack;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.pc.gmio.feign.Zfeign.ZzuulFeign;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * 功能描述:调用网关服务
 */
@Component
public class ZuulFeignFallback implements ZzuulFeign {

    @Override
    public JsonResult getButlerUserIdList(Map<String, Object> params) {
        return JsonResult.error("服务器繁忙...");
    }

    @Override
    public JsonResult getWegNameList(Map<String, Object> params) {
        return JsonResult.error("服务器繁忙...");
    }

    @Override
    public JsonResult getDiUserIdList(Map<String, Object> params) {
        return JsonResult.error("服务器繁忙...");
    }

    @Override
    public JsonResult getReapirSysUser(Map<String, Object> params) {
        return JsonResult.error("服务器繁忙...");
    }

    @Override
    public JsonResult getSysAreaList(Map<String, Object> params) {
        return JsonResult.error("服务器繁忙...");
    }

    @Override
    public JsonResult getUsrList(Map<String, Object> params) {
        return JsonResult.error("服务器繁忙...");
    }

    @Override
    public JsonResult getUserInfo(Map<String, Object> params) {
        return JsonResult.error("服务器繁忙...");
    }

    @Override
    public JsonResult getWoSaleIdList(Map<String, Object> params) {
        return JsonResult.error("服务器繁忙...");
    }

    @Override
    public JsonResult getSystemUser(Map<String, Object> params) {
        return JsonResult.error("服务器繁忙...");
    }

    @Override
    public JsonResult getLoginName(Map<String, Object> params) {
        return JsonResult.error("服务器繁忙...");
    }

    @Override
    public JsonResult addMessage(Map<String, Object> params) {
        return JsonResult.error("服务器繁忙...");
    }

    @Override
    public JsonResult getSysDeptRoleList(Map<String, Object> params) {
        return JsonResult.error("服务器繁忙...");
    }

    @Override
    public JsonResult getTranInfoList(Map<String, Object> params) {
        return JsonResult.error("服务器繁忙...");
    }

    @Override
    public JsonResult AddMessage(Map<String, Object> params) {
        return JsonResult.error("服务器繁忙...");
    }

    @Override
    public List<Map<String, Object>> getZhzgEmployeesList(String search) {
        return new ArrayList<>();
    }
}
